package com.doufeng.common.exception;

public class BizException extends RuntimeException {
    
    private int code;
    
    public BizException(String message) {
        super(message);
        this.code = 500;
    }
    
    public BizException(int code, String message) {
        super(message);
        this.code = code;
    }
    
    public int getCode() {
        return code;
    }
}